package com.netease.pris.activity;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import com.netease.b.a.d;
import com.netease.framework.a.a;
import com.netease.framework.a.l;
import com.netease.pris.app.PrisApp;
import com.netease.pris.offline.e;
import java.util.LinkedList;

public class PRISServiceOfflineDownload extends Service
  implements e
{
  static final String a = "PRISServiceOfflineDownload";
  boolean b = true;
  com.netease.pris.offline.c c = null;
  LinkedList d = new LinkedList();
  com.netease.framework.b.c e;
  a f;
  em g = new em(this);

  // ERROR //
  public int a(int paramInt, java.lang.Object paramObject)
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 35	com/netease/pris/activity/PRISServiceOfflineDownload:d	Ljava/util/LinkedList;
    //   4: ifnull +72 -> 76
    //   7: aload_0
    //   8: getfield 35	com/netease/pris/activity/PRISServiceOfflineDownload:d	Ljava/util/LinkedList;
    //   11: astore_3
    //   12: aload_3
    //   13: monitorenter
    //   14: aload_0
    //   15: getfield 35	com/netease/pris/activity/PRISServiceOfflineDownload:d	Ljava/util/LinkedList;
    //   18: invokevirtual 47	java/util/LinkedList:iterator	()Ljava/util/Iterator;
    //   21: astore 5
    //   23: aload 5
    //   25: invokeinterface 53 1 0
    //   30: ifeq +31 -> 61
    //   33: aload 5
    //   35: invokeinterface 57 1 0
    //   40: checkcast 6	com/netease/pris/offline/e
    //   43: iload_1
    //   44: aload_2
    //   45: invokeinterface 59 3 0
    //   50: pop
    //   51: goto -28 -> 23
    //   54: astore 4
    //   56: aload_3
    //   57: monitorexit
    //   58: aload 4
    //   60: athrow
    //   61: aload_3
    //   62: monitorexit
    //   63: iload_1
    //   64: iconst_1
    //   65: if_icmpeq +11 -> 76
    //   68: aload_0
    //   69: invokevirtual 61	com/netease/pris/activity/PRISServiceOfflineDownload:b	()V
    //   72: aload_0
    //   73: invokevirtual 64	com/netease/pris/activity/PRISServiceOfflineDownload:stopSelf	()V
    //   76: iconst_0
    //   77: ireturn
    //
    // Exception table:
    //   from	to	target	type
    //   14	58	54	finally
    //   61	63	54	finally
  }

  public void a()
  {
    if (this.c != null)
    {
      this.c.e();
      this.c = null;
    }
    String str1 = d.h().c();
    String str2 = d.h().d();
    LinkedList localLinkedList = com.netease.pris.c.c.f(PrisApp.a(), str1);
    if ((localLinkedList != null) && (localLinkedList.size() == 0))
      stopSelf();
    while (true)
    {
      return;
      this.c = com.netease.pris.offline.c.a(localLinkedList, str1, str2);
      this.c.a(this);
      if (this.f == null)
        this.f = new a(4, 1);
      if (this.e == null)
      {
        this.e = new com.netease.framework.b.c(1, 2);
        this.e.a(new l(this.e, this.f));
      }
      this.e.a(this.c);
    }
  }

  public void a(e parame)
  {
    if (this.d != null)
      this.d.add(parame);
  }

  public void b()
  {
    if (this.c != null)
      this.c.e();
    if (this.f != null)
    {
      this.f.a();
      this.f = null;
    }
    if (this.e != null)
    {
      this.e.b();
      this.e = null;
    }
  }

  public void b(e parame)
  {
    if (this.d != null)
      this.d.remove(parame);
  }

  public boolean c()
  {
    if ((this.c != null) && (!this.c.o()));
    for (int i = 1; ; i = 0)
      return i;
  }

  public IBinder onBind(Intent paramIntent)
  {
    return this.g;
  }

  public void onCreate()
  {
    super.onCreate();
  }

  public void onDestroy()
  {
    super.onDestroy();
  }

  public void onStart(Intent paramIntent, int paramInt)
  {
    super.onStart(paramIntent, paramInt);
  }

  public boolean onUnbind(Intent paramIntent)
  {
    return super.onUnbind(paramIntent);
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.PRISServiceOfflineDownload
 * JD-Core Version:    0.6.0
 */